package com.shsxt.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.shsxt.model.Activity;
import com.shsxt.model.BOrder;
import com.shsxt.model.COrder;
import com.shsxt.model.Coupon;
import com.shsxt.model.CustomerQuery;
import com.shsxt.model.DOrder;
import com.shsxt.model.JOrder;
import com.shsxt.model.KOrder;
import com.shsxt.model.Lunbo;
import com.shsxt.model.Notified;
import com.shsxt.model.ROrder;
import com.shsxt.model.ROrder2;
import com.shsxt.model.SOrder;
import com.shsxt.model.ServicePersonal;
import com.shsxt.model.SignIn;
import com.shsxt.model.UserInfo;
import com.shsxt.model.Userinfologin;
import com.shsxt.model.YOrder;
import com.shsxt.vo.CdkeyQuery;
import com.shsxt.vo.TongjiQuery;
import com.shsxt.vo.WithdrawQuery;


public interface IUserinfoDao extends BaseDao<CustomerQuery>{
	//登陆
	public Userinfologin islogin(String name,String pwd);
	//添加用户
	public void add(Userinfologin user);
	//查询用户
	public List<Userinfologin> queryAll();
	// 根据id删除用户
	public void delete(int id);
	//根据id查询实体
	public Userinfologin queryById(int id);
	//根据Id修改用户
	public void update(int id,String name,String pwd);
	
	public List<CustomerQuery> selectForPage(Map<String, Object> param);
	
	//添加日常保洁
	public Integer add(ROrder rorder);
	//删除订单
	public Integer deletelxc(@Param(value = "orderNumber") String orderNumber);
	//删除通知
	public Integer deleteNotified(@Param(value = "id") String id);
	//删除兑换码
	public Integer deleteCdkey(@Param(value = "cdkey") String cdkey);
	//删除优惠券
	public Integer deleteCoupon(@Param(value = "redeemCode") String redeemCode);
	//删除归属地
	public Integer deleteLocation(@Param(value = "location") String location);
	//删除提现
	public Integer deleteWithdraw(@Param(value = "id") String id);
	//删除统计
	public Integer deleteTongji(@Param(value = "id") String id);
	//删除轮播
	public Integer deleteLunbo(@Param(value = "lunbo") String lunbo);
	public Integer deleteActivity(@Param(value = "id") String id);
	//修改上班状态
	public Integer updateStage(@Param(value = "phoneNumber") String phoneNumber);
	//修改转账状态
	public Integer openWithdraw(@Param(value = "id") String id);

	//修改线上
	public void updateR(ROrder rorder);
	public void updateS(SOrder sorder);
	public void updateK(KOrder korder);
	public void updateJ(JOrder jorder);
	public void updateD(DOrder dorder);
	public void updateC(COrder corder);
	public void updateZ(ROrder2 rorder);
	public void updateY(YOrder yorder);
	public void updateB(BOrder border);
	public void updateUserMessage(UserInfo user);
	public void updateAuntMessage(ServicePersonal user);
	public void updateWithMessage(WithdrawQuery with);
	public void updateTongjiMessage(TongjiQuery tongji);
	public void updateCdkeyMessage(CdkeyQuery cdkey);
	public void updateCouponMessage(Coupon coupon);
	public void addCdkeySendMessage(CdkeyQuery cdkey);
	public void addCouponSendMessage(Coupon cdkey);
	public void addNotifiedMessage(Notified notified);
	public void addAunt(ServicePersonal aunt);

	public void addActivityMessage(Activity activity);
	public void addLunboMessage(Lunbo lunbo);

	public void createNotifiedMessage(Notified notified);
	public List<UserInfo> findUsers();
	public void updateNotifiedUser(String phoneNumber);
	public List<ServicePersonal> findAunts();
	public void updateNotifiedAunt(String phoneNumber);
	public void updateNotifiedAunt2(String phoneNumber);
	public SignIn findSignByPhone(String phoneNumber);
	public UserInfo findUserByPhone(String phoneNumber);
	public void updateCredits(Map<String, Object> param);
	public void createSign(String phoneNumber);



	
	
}
